package com.grass.plugin.paging.page;

/**
 * 
 * @author WUJXIAO
 * QQ 396246973
 */
@SuppressWarnings("serial")
public class PageContext extends Page {

    private static ThreadLocal<PageContext> context = new ThreadLocal<PageContext>();

    public static PageContext getContext() {
        PageContext ci = context.get();
        if (ci == null) {
            ci = new PageContext();
            context.set(ci);
        }
        return ci;
    }

    public static void removeContext() {
        context.remove();
    }
}
